{suppliers limit=10 pager=pager page=$smarty.post.page keywords=$smarty.get.keywords shopid=$smarty.get.shopid}
<div><a href="javascript:;" onclick="context_menu_filldata('{$smarty.get.datas|replace:'[id]':$suppliers.id|replace:'[title]':$suppliers.title|escape:quotes}');"
 class="menuas">{$suppliers.id}. {$suppliers.title}</a></div>
{/suppliers}
{if $pager->rows>0}
<div id="pager">
{if $pager} 第{$pager->pagecurrent}/{$pager->pages}页 {/if} 		
{if $pager->current > 1}<a name="pagelink" href="javascript:;" onclick="context_menu_page(1)">首页</a> {/if}
{if $pager->current > 1}<a name="pagelink" href="javascript:;" onclick="context_menu_page({$pager->current-1})">上页</a> {/if}
{if $pager->current < $pager->pages}<a name="pagelink" href="javascript:;" onclick="context_menu_page({$pager->current+1})">下页</a> {/if}
{if $pager->current < $pager->pages}<a name="pagelink" href="javascript:;" onclick="context_menu_page({$pager->pages})">尾页</a> {/if}
</div>

{literal}
<style> #context_menu { border:1px solid #999; }</style>
{/literal}
{/if}
